#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    float arr[5] = { 0 };

    int j = 0;
    while (j < 5)
    {
        int i = 0;
        float sum = 0.0f;
        while (i < 5)
        {
            scanf("%f", &arr[i]);
            printf("%.1f ", arr[i]);
            sum += arr[i];
            i++;

        }
        printf("%.1f\n", sum);
        j++;
    }
}